package com.richardjaap.data;

import java.util.ArrayList;

public class TableInfo {
	
	private int tableId;
	private int amountOfPlayers;
	private ArrayList<TableInfoPlayer> players;
	
	public TableInfo(int tableId, int amountOfPlayers, ArrayList<TableInfoPlayer> playersList){
		this.setTableId(tableId);
		this.setAmountOfPlayers(amountOfPlayers);
		this.players = new ArrayList<TableInfoPlayer>();
		if(playersList.size() == 0){
			this.players.add(new TableInfoPlayer("FUCK YOU", 20000.0, 0));
		} else {
			this.players = playersList;
		}
	}

	public int getTableId() {
		return tableId;
	}

	public void setTableId(int tableId) {
		this.tableId = tableId;
	}

	public int getAmountOfPlayers() {
		return amountOfPlayers;
	}

	public void setAmountOfPlayers(int amountOfPlayers) {
		this.amountOfPlayers = amountOfPlayers;
	}
	
	public ArrayList<TableInfoPlayer> getPlayers(){
		return players;
	}
	
	public void setPlayers(ArrayList<TableInfoPlayer> players){
		this.players = players;
	}
}
